import fs from '@ohos.file.fs';
import res from '@ohos.resourceManager';
import hidebug from '@ohos.hidebug'

import tetrahedron_napi from 'libtetrahedron_napi.so'

export let testGC1 = () => {

    let w = tetrahedron_napi.getWindow();
    console.log("getWindow", w)
    setTimeout(() => {
        gc();
    }, 1000)
}

export function gc() {
    console.log('before gc');
    //@ts-ignore
    ArkTools.forceFullGC();
    hidebug.dumpHeapData('xxx')
    console.log('after gc');
}
